import 'package:enterprise_v6_app/app/data/common/choice_bean.dart';

class StandardizationScenceAlarmMenuType implements ChoiceBean {
  StandardizationScenceAlarmMenuType(this.name);

  final String name;

  bool isChecked = false;

  static final regulation = StandardizationScenceAlarmMenuType('警示标志管理制度');
  static final sign = StandardizationScenceAlarmMenuType('警示标志');
  static List<StandardizationScenceAlarmMenuType> get all => [regulation, sign];

  @override
  String getId() => name;

  @override
  String getShowName() => name;

  @override
  bool getIsChecked() => isChecked;

  @override
  void setIsChecked(bool isChecked) {
    this.isChecked = isChecked;
  }

  String get path {
    switch (name) {
      case '警示标志管理制度':
        return '/standard//warningSign/getWarningSignManagementSystemPage';
      case '警示标志':
        return '/standard//warningSign/getWarningSignPage';
      default:
        return '';
    }
  }
}
